package org.yh.filter;

/**
 * @Author: yh
 * @Description:
 * @Date: Created in 17:20 2019/4/2
 * @Modified By:
 */

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

import static java.util.Collections.emptyList;

public class JwtAuthenticationToken extends UsernamePasswordAuthenticationToken {

    private static final long serialVersionUID = 1L;

    public JwtAuthenticationToken(Object principal) {
        super(principal, null, emptyList());
    }

    @Override
    public Object getCredentials() {
        return super.getCredentials();
    }

    @Override
    public Object getPrincipal() {
        return super.getPrincipal();
    }

}
